// 变量
@import "variables.less";

@import "mixins.less";
// 按钮
@import "buttons.less";

.msg-input {
  padding: 5px 0 5px 5px;

  input {
    color: #4b4b4b;
    background-color: white;
    display: block;
    width: 100%;
    height: 1.6rem;
    line-height: 1.6rem;
    margin: 0 auto;
    font-size: .9rem;
    border-radius: 5px;
    border:1px solid #c1c1c1;
    //padding-left: 10px;
    box-sizing: border-box;
    //margin-bottom: 10px;
  }

  /*
  input {
    width: 100%;
    border: 0;
    outline: 0;
    -webkit-appearance: none;
    background-color: transparent;
    font-size: inherit;
    //color: inherit;
    color: #4b4b4b; //#828282;
    height: 20px;
    line-height: 20px;

    // hides the spin-button
    &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
  }
  */
}

pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
  font-size: 15px;
  color: #333;

  line-height: 20px;
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre;
  white-space: pre-wrap;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
}

.input {
  input {
    width: 100%;
    color: #4b4b4b;
    background-color: white;
    display: block;
    height: 1.6rem;
    line-height: 1.6rem;
    margin: 0 auto; // 居中
    font-size: .8rem;
    border-radius: 5px;
    border: 1px solid #c1c1c1;
    padding-left: 5px;
    box-sizing: border-box;
    //margin-bottom: 10px;
  }
}

.fromto {
  display: flex;
  flex-wrap: nowrap;
  input {
    color: #4b4b4b;
    background-color: white;
    display: block;
    height: 1.6rem;
    line-height: 1.6rem;
    font-size: .8rem;
    border-radius: 5px;
    border: 1px solid #c1c1c1;
    padding-left: 5px;
    box-sizing: border-box;
    //margin-bottom: 10px;
  }
}

.btn {
}


/*聊天气泡*/

.aui-chat {
  width: 100%;
  height: 100%;
  padding: 0.5rem;

  .aui-chat-item {
    position: relative;
    width: 100%;
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: block;
  }

  .aui-chat-header {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.6rem;
    color: #757575;
  }

  .aui-chat-left {
    float: left;
  }

  .aui-chat-right {
    float: right;
  }

  .aui-chat-media {
    display: inline-block;
    max-width: 2rem;
  }

  .aui-chat-media img {
    width: 100%;
    border-radius: 50%;
  }

  .aui-chat-inner {
    position: relative;
    overflow: hidden;
    /*max-width: auto;*/
    display: inherit;
  }

  .aui-chat-arrow {
    content: '';
    position: absolute;
    width: 0.6rem;
    height: 0.6rem;
    top: 0.2rem;
    -webkit-transform-origin: 50% 50% 0;
    transform-origin: 50% 50% 0;
    background-color: transparent;
  }

  .aui-chat-content {
    color: #212121;
    font-size: 0.7rem;
    border-radius: 0.2rem;
    min-height: 2rem;
    position: relative;
    padding: 0.5rem;
    max-width: 80%;
    word-break: break-all;
    word-wrap: break-word;

    img {
      max-width: 100%;
      display: block;
    }
  }

  .aui-chat-status {
    position: relative;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
  }

  .aui-chat-name {
    width: 100%;
    position: relative;
    font-size: 0.6rem;
    color: #757575;
    margin-bottom: 0.25rem;
  }

  .aui-chat-left {
    .aui-chat-arrow {

      background-image: -webkit-linear-gradient(45deg, #b3e5fc, #b3e5fc 50%, transparent 50%);
      background-image: linear-gradient(45deg, #b3e5fc, #b3e5fc 50%, transparent 50%);
      -webkit-transform: rotate(45deg);
      transform: rotate(45deg);
      left: -0.25rem;
    }

    .aui-chat-name {
      left: 0.5rem;
    }

    .aui-chat-status {
      left: 0.5rem;
      float: left;
    }

    .aui-chat-media {
      width: 2rem;
      float: left;
    }

    .aui-chat-inner {
      max-width: 70%;
    }

    .aui-chat-content {
      background-color: #b3e5fc;
      float: left;
      left: 0.5rem;
    }
  }

  .aui-chat-right {
    .aui-chat-arrow {
      background-image: -webkit-linear-gradient(45deg, #ffffff, #ffffff 50%, transparent 50%);
      background-image: linear-gradient(45deg, #ffffff, #ffffff 50%, transparent 50%);
      -webkit-transform: rotate(-135deg);
      transform: rotate(-135deg);
      right: -0.25rem;
    }

    .aui-chat-media {
      width: 2rem;
      float: right;
    }

    .aui-chat-inner {
      float: right;
      max-width: 70%;
    }

    .aui-chat-name {
      float: right;
      right: 0.5rem;
      text-align: right;
    }

    .aui-chat-content {
      background-color: #ffffff;
      right: 0.5rem;
      float: right;
    }

    .aui-chat-status {
      float: right;
      right: 0.5rem;
    }
  }
}